Function |from_option_number_f64
json/value::|from_option_number_f64
Usage
|from_option_number_f64<F>(value, replacement)
Generics
◻ F: ToF64
Parameters
↳ value: Option<F>
↳ replacement: Json (json::Json)
Return
↴ Json
Makes a JSON numeric value from option f64 convertible value
If value is some number, it is turned into JSON, else if value is none, null JSON value is returned.
An infinite or NaN number is not a valid JSON value, then replacement value is used in that case.